home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Skunkware 5
/
Skunkware 5.iso
/
src
/
X11
/
unclutter-2.7
/
Makefile.release
< prev
next >
Wrap
Makefile
|
1995-06-22
|
2KB
|
61 lines
# Makefile for unclutter. Throw this away and use the Imakefile if you can.
TOP = .
CURRENT_DIR = .
CC = gcc
LKED = $(CC)
INSTALL = install
MAKE = make
MV = mv
RM = rm -f
TAGS = ctags
MFLAGS = -$(MAKEFLAGS)
INSTPGMFLAGS = -c -s
INSTMANFLAGS = -c
TOP_INCLUDES = -I$(INCROOT)
CDEBUGFLAGS = -O
ALLINCLUDES = $(STD_INCLUDES) $(TOP_INCLUDES) $(INCLUDES) $(EXTRA_INCLUDES)
ALLDEFINES = $(ALLINCLUDES) $(STD_DEFINES) $(PROTO_DEFINES) $(DEFINES) $(COMPATFLAGS)
CFLAGS = $(CDEBUGFLAGS) $(CCOPTIONS) $(ALLDEFINES)
LDLIBS = $(SYS_LIBRARIES) $(EXTRA_LIBRARIES)
LDOPTIONS = $(CDEBUGFLAGS) $(CCOPTIONS)
RM_CMD = $(RM) *.CKP *.ln *.BAK *.bak *.o core errs ,* *~ *.a .emacs_* tags TAGS make.log MakeOut
IRULESRC = $(CONFIGDIR)
IMAKE_CMD = $(IMAKE) -DUseInstalled -I$(IRULESRC) $(IMAKE_DEFINES)
BINDIR = $(DESTDIR)/usr/bin/X11
INCROOT = $(DESTDIR)/usr/include
MANPATH = $(DESTDIR)/usr/catman/x11_man
MANSOURCEPATH = $(MANPATH)/man
MANDIR = $(MANSOURCEPATH)1
IMAKE = imake
XLIB = $(EXTENSIONLIB) -lX11
LOCAL_LIBRARIES = $(XLIB)
OBJS = unclutter.o
SRCS = unclutter.c
PROGRAM = unclutter
all:: unclutter
unclutter: $(OBJS) $(DEPLIBS)
$(RM) $@
$(LKED) -o $@ $(OBJS) $(LDOPTIONS) $(LOCAL_LIBRARIES) $(LDLIBS) $(EXTRA_LOAD_FLAGS)
install:: unclutter
$(INSTALL) -c $(INSTPGMFLAGS) unclutter $(BINDIR)
install.man:: unclutter.man
$(INSTALL) -c $(INSTMANFLAGS) unclutter.man $(MANDIR)/unclutter.1
clean::
$(RM) $(PROGRAM)
$(RM_CMD) \#*
Makefile::
-@if [ -f Makefile ]; then \
echo " $(RM) Makefile.bak; $(MV) Makefile Makefile.bak"; \
$(RM) Makefile.bak; $(MV) Makefile Makefile.bak; \
else exit 0; fi
$(IMAKE_CMD) -DTOPDIR=$(TOP) -DCURDIR=$(CURRENT_DIR)
tags::
$(TAGS) -w *.[ch]
$(TAGS) -xw *.[ch] > TAGS